package com.aaa.sso.service;

import com.aaa.common.bo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ fileName:RemoteUserService
 * @ description:
 * @ author:zhz
 * @ createTime:2023/6/16 15:09
 * @ version:1.0.0
 */
@FeignClient(name = "SystemServer")
public interface RemoteUserService {

    /**
     * 根据用户名查询用户信息
     * @param userName
     * @return
     */
    @GetMapping("/userS/queryByUserName")
    User queryByUsername(@RequestParam("userName")String userName);

    //继续写。。。

}
